package com.jiai.cloud.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.omg.CORBA.IDLType;

import java.io.Serializable;

/**
 * <p>
 * 类型表
 * </p>
 *
 * @author Yanghu
 * @since 2017-05-24
 */
@TableName("t_good_type")
public class TGoodType extends Model<TGoodType> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品类型编号
     */
    @TableId(type = IdType.AUTO)
	private Integer id;
    /**
     * 类型名称
     */
	private String tyteName;
    /**
     * 父节点
     */
	private Integer parerntId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTyteName() {
		return tyteName;
	}

	public void setTyteName(String tyteName) {
		this.tyteName = tyteName;
	}

	public Integer getParerntId() {
		return parerntId;
	}

	public void setParerntId(Integer parerntId) {
		this.parerntId = parerntId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
